package zli.adapter.objectAdapter;

/**
 * @author ZerlindaLi create at 2021/3/26 10:09
 * @version 1.0.0
 * @description Adapter
 */
public class Adapter implements Target {
    private Adaptee adaptee;

    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void bianNiu() {
        adaptee.outSun();
        System.out.println("我变成牛魔王啦^*^");
    }
}
